<?php
class BaseController{
	public $params = [];
	public function assign($key,$val){
		 $this->params[$key] = $val;	
	}

	public function fetch($tplname=""){
		global $M,$C,$A;
		if(count($this->params)>0){
			extract($this->params);
		}
		$tpl = "./".$M."/View/".$C."/".$A.".html";
		require_once($tpl); 
	}
}